﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site_InnerWeb.master" AutoEventWireup="false" CodeFile="MyCardDetails.aspx.vb" Inherits="private_secure_members_manage_MyCardDetails" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="../../../Controls/AddNewCard.ascx" tagname="AddNewCard" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">

		
		* {margin: 0; padding: 0; }
		
		
		</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Button ID="btnBack" runat="server" Text="Back" /><br />
        <div style="float: left">

    <table>
        <tr>
            <td>
                <h2>Edit Card Details</h2>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" CellPadding="4" EmptyDataText="There is no registered credit cards." ForeColor="#333333">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:TemplateField HeaderText="Id" InsertVisible="False" SortExpression="Id" Visible="False">
                            <EditItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CardNumber" HeaderText="Card Number" ReadOnly="True" SortExpression="CardNumber" />
                        <asp:TemplateField HeaderText="Card Type " SortExpression="CardTypeId">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CardTypeId") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label3" runat="server" Text='<%# Bind("CardTypeId") %>' Visible="False"></asp:Label>
                                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="ObjectDataSource2" GridLines="None" ShowHeader="False" Width="100%">
                                    <Columns>
                                        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                                    </Columns>
                                </asp:GridView>
                                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_lkp_PaymentMethodSelectTableAdapter" UpdateMethod="Update">
                                    <DeleteParameters>
                                        <asp:Parameter Name="Id" Type="Int32" />
                                    </DeleteParameters>
                                    <InsertParameters>
                                        <asp:Parameter Name="Name" Type="String" />
                                        <asp:Parameter Name="Active" Type="Boolean" />
                                    </InsertParameters>
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="Label3" Name="Id" PropertyName="Text" Type="Int32" />
                                    </SelectParameters>
                                    <UpdateParameters>
                                        <asp:Parameter Name="Id" Type="Int32" />
                                        <asp:Parameter Name="Name" Type="String" />
                                        <asp:Parameter Name="Active" Type="Boolean" />
                                    </UpdateParameters>
                                </asp:ObjectDataSource>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
            <td style="vertical-align: top">
        </tr>
        </table></div>
    <div style="float: left">
                <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Width="412px">
                    <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                        <HeaderTemplate>
                            Edit/Delete
                        </HeaderTemplate>
                        <ContentTemplate>
                                                <h3>
                        <asp:Label ID="lblEditDeleteTitle" runat="server"></asp:Label>
</h3>

                            <asp:Panel ID="pnlEditCard" runat="server" GroupingText="Card details">
                                
                                <table>
                                    <tr>
                                        <td>Card Number </td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtEditCardNumber" runat="server"></asp:TextBox>
<asp:MaskedEditExtender ID="txtCardNumber_MaskedEditExtender" runat="server"
                                                TargetControlID="txtEditCardNumber"
                                                Mask="9999999999999999"
                                                MaskType="Number"
                                                AcceptNegative="Left"
                                                ErrorTooltipEnabled="True" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"></asp:MaskedEditExtender>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Card Type </td>
                                        <td colspan="2">
                                            <asp:DropDownList ID="cboCCEditType" runat="server" DataSourceID="ObjectDataSource3" DataTextField="Name" DataValueField="Id"></asp:DropDownList>
<asp:ObjectDataSource ID="ObjectDataSource3" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_lkp_PaymentMethodSelectTableAdapter" UpdateMethod="Update"><DeleteParameters>
<asp:Parameter Name="Id" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Active" Type="Boolean" />
</InsertParameters>
<SelectParameters>
<asp:Parameter Name="Id" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Id" Type="Int32" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Active" Type="Boolean" />
</UpdateParameters>
</asp:ObjectDataSource>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Valid From:</td>
                                        <td colspan="2">mm
                                            <asp:DropDownList ID="cboCardValidEditMM" runat="server"><asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3"></asp:ListItem>
<asp:ListItem Value="4"></asp:ListItem>
<asp:ListItem Value="5">5</asp:ListItem>
<asp:ListItem Value="6">6</asp:ListItem>
<asp:ListItem Value="7">7</asp:ListItem>
<asp:ListItem Value="8">8</asp:ListItem>
<asp:ListItem Value="09">9</asp:ListItem>
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="11">11</asp:ListItem>
<asp:ListItem Value="12">12</asp:ListItem>
</asp:DropDownList>
&#160;yy
                                            <asp:DropDownList ID="cboCardValidEditYY" runat="server"><asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
</asp:DropDownList>
</td>
                                    </tr>
                                    <tr>
                                        <td>Expire Date: </td>
                                        <td colspan="2">mm
                                            <asp:DropDownList ID="cboCardExpiryEditMM" runat="server"><asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3"></asp:ListItem>
<asp:ListItem Value="4"></asp:ListItem>
<asp:ListItem Value="5">5</asp:ListItem>
<asp:ListItem Value="6">6</asp:ListItem>
<asp:ListItem Value="7">7</asp:ListItem>
<asp:ListItem Value="8">8</asp:ListItem>
<asp:ListItem Value="09">9</asp:ListItem>
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="11">11</asp:ListItem>
<asp:ListItem Value="12">12</asp:ListItem>
</asp:DropDownList>
&#160;yy
                                            <asp:DropDownList ID="cboCardExpiryEditYY" runat="server"></asp:DropDownList>
</td>
                                    </tr>
                                    <tr>
                                        <td>CVV</td>
                                        <td colspan="2">
                                            <asp:TextBox ID="txtEditCVV" runat="server"></asp:TextBox>
<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtEditCVV"
                                                Mask="9999"
                                                MaskType="Number"
                                                AcceptNegative="Left"
                                                ErrorTooltipEnabled="True" Century="2000" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True"></asp:MaskedEditExtender>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td>
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"><ContentTemplate>
                                                    <asp:Button ID="btnSave" runat="server" Text="Save" /><asp:Button ID="btnDelete" runat="server" Text="Delete" /><asp:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" ConfirmText="Delete Credit Card?" Enabled="True" TargetControlID="btnDelete"></asp:ConfirmButtonExtender>
                                                    <br />
                                                    <asp:Label ID="MsgEditLbl" runat="server" Text=""></asp:Label><asp:Label ID="lblId" runat="server" Text="" Visible="false"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>

                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td colspan="2">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td colspan="2">&nbsp;</td>
                                    </tr>
                                </table>
                            </asp:Panel>

                            </td>
                        
</ContentTemplate>

                    
</asp:TabPanel>
                    <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">



                        <HeaderTemplate>
                            Insert
                        </HeaderTemplate>



                        <ContentTemplate>
                            <uc1:AddNewCard ID="AddNewCard1" runat="server" />
                        
</ContentTemplate>



                    
</asp:TabPanel>
                </asp:TabContainer></div>

    <asp:ObjectDataSource ID="CardDetailsODS" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_CardDetailsSelectTableAdapter" ValidateRequestMode="Disabled">
        <SelectParameters>
            <asp:Parameter Name="Id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <%--        <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup">

        
    <asp:Button ID="btnEditCard" runat="server" Style="display: none;" Text="Button" />
    <asp:ModalPopupExtender ID="EditCardModalPopupExtender" runat="server" BackgroundCssClass="modalBackground" DropShadow="true" DynamicServicePath="" Enabled="True" PopupControlID="pnlEditCard" TargetControlID="btnEditCard">
    </asp:ModalPopupExtender>--%>
</asp:Content>

